<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QxOrm: C:/Dvlp/_Perso/QxOrm/include/QxService/QxConnect.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_qxorm.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QxOrm
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">C++ Object Relational Mapping library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_qx_connect_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">QxConnect.h</div>  </div>
</div>
<div class="contents">
<a href="_qx_connect_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">**</span>
<a name="l00003"></a>00003 <span class="comment">** http://www.qxorm.com/</span>
<a name="l00004"></a>00004 <span class="comment">** Copyright (C) 2013 Lionel Marty (contact@qxorm.com)</span>
<a name="l00005"></a>00005 <span class="comment">**</span>
<a name="l00006"></a>00006 <span class="comment">** This file is part of the QxOrm library</span>
<a name="l00007"></a>00007 <span class="comment">**</span>
<a name="l00008"></a>00008 <span class="comment">** This software is provided &#39;as-is&#39;, without any express or implied</span>
<a name="l00009"></a>00009 <span class="comment">** warranty. In no event will the authors be held liable for any</span>
<a name="l00010"></a>00010 <span class="comment">** damages arising from the use of this software</span>
<a name="l00011"></a>00011 <span class="comment">**</span>
<a name="l00012"></a>00012 <span class="comment">** Commercial Usage</span>
<a name="l00013"></a>00013 <span class="comment">** Licensees holding valid commercial QxOrm licenses may use this file in</span>
<a name="l00014"></a>00014 <span class="comment">** accordance with the commercial license agreement provided with the</span>
<a name="l00015"></a>00015 <span class="comment">** Software or, alternatively, in accordance with the terms contained in</span>
<a name="l00016"></a>00016 <span class="comment">** a written agreement between you and Lionel Marty</span>
<a name="l00017"></a>00017 <span class="comment">**</span>
<a name="l00018"></a>00018 <span class="comment">** GNU General Public License Usage</span>
<a name="l00019"></a>00019 <span class="comment">** Alternatively, this file may be used under the terms of the GNU</span>
<a name="l00020"></a>00020 <span class="comment">** General Public License version 3.0 as published by the Free Software</span>
<a name="l00021"></a>00021 <span class="comment">** Foundation and appearing in the file &#39;license.gpl3.txt&#39; included in the</span>
<a name="l00022"></a>00022 <span class="comment">** packaging of this file. Please review the following information to</span>
<a name="l00023"></a>00023 <span class="comment">** ensure the GNU General Public License version 3.0 requirements will be</span>
<a name="l00024"></a>00024 <span class="comment">** met : http://www.gnu.org/copyleft/gpl.html</span>
<a name="l00025"></a>00025 <span class="comment">**</span>
<a name="l00026"></a>00026 <span class="comment">** If you are unsure which license is appropriate for your use, or</span>
<a name="l00027"></a>00027 <span class="comment">** if you have questions regarding the use of this file, please contact :</span>
<a name="l00028"></a>00028 <span class="comment">** contact@qxorm.com</span>
<a name="l00029"></a>00029 <span class="comment">**</span>
<a name="l00030"></a>00030 <span class="comment">****************************************************************************/</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#ifdef _QX_ENABLE_QT_NETWORK</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#ifndef _QX_SERVICE_CONNECT_H_</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#define _QX_SERVICE_CONNECT_H_</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span>
<a name="l00047"></a>00047 <span class="preprocessor">#include &lt;<a class="code" href="_qx_singleton_8h.html" title="Concrete class to define a thread-safe singleton of QxOrm library.">QxSingleton/QxSingleton.h</a>&gt;</span>
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="preprocessor">#if _QX_SERIALIZE_BINARY</span>
<a name="l00050"></a><a class="code" href="_qx_connect_8h.html#a2aa016dd83408fc905d2e1ef7650a02b">00050</a> <span class="preprocessor"></span><span class="preprocessor">#define QX_SERVICE_DEFAULT_SERIALIZATION_TYPE serialization_binary</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span><span class="preprocessor">#elif _QX_SERIALIZE_WIDE_BINARY</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">#define QX_SERVICE_DEFAULT_SERIALIZATION_TYPE serialization_wide_binary</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span><span class="preprocessor">#elif _QX_SERIALIZE_PORTABLE_BINARY</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor">#define QX_SERVICE_DEFAULT_SERIALIZATION_TYPE serialization_portable_binary</span>
<a name="l00055"></a>00055 <span class="preprocessor"></span><span class="preprocessor">#elif _QX_SERIALIZE_POLYMORPHIC</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#define QX_SERVICE_DEFAULT_SERIALIZATION_TYPE serialization_polymorphic_binary</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span><span class="preprocessor">#elif _QX_SERIALIZE_TEXT</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span><span class="preprocessor">#define QX_SERVICE_DEFAULT_SERIALIZATION_TYPE serialization_text</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span><span class="preprocessor">#elif _QX_SERIALIZE_XML</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#define QX_SERVICE_DEFAULT_SERIALIZATION_TYPE serialization_xml</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span><span class="preprocessor">#elif _QX_SERIALIZE_WIDE_TEXT</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span><span class="preprocessor">#define QX_SERVICE_DEFAULT_SERIALIZATION_TYPE serialization_wide_text</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span><span class="preprocessor">#elif _QX_SERIALIZE_WIDE_XML</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#define QX_SERVICE_DEFAULT_SERIALIZATION_TYPE serialization_wide_xml</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span><span class="preprocessor">#endif // _QX_SERIALIZE_BINARY</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span>
<a name="l00067"></a>00067 <span class="preprocessor">#ifndef QX_SERVICE_DEFAULT_SERIALIZATION_TYPE</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span><span class="preprocessor">#define QX_SERVICE_DEFAULT_SERIALIZATION_TYPE serialization_qt</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span><span class="preprocessor">#endif // QX_SERVICE_DEFAULT_SERIALIZATION_TYPE</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span>
<a name="l00071"></a><a class="code" href="_qx_connect_8h.html#ad0640f09e00c1ad6afc270a75ed33ee5">00071</a> <span class="preprocessor">#define QX_SERVICE_DEFAULT_ENCRYPT_KEY Q_UINT64_C(0x0f2aac3b24358a1a)</span>
<a name="l00072"></a>00072 <span class="preprocessor"></span>
<a name="l00073"></a>00073 <span class="keyword">namespace </span>qx {
<a name="l00074"></a>00074 <span class="keyword">namespace </span>service {
<a name="l00075"></a>00075 
<a name="l00082"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html">00082</a> <span class="keyword">class </span><a class="code" href="_qx_macro_8h.html#aa569abe24f343fdc4ad5e12e156ba8a2">QX_DLL_EXPORT</a> <a class="code" href="classqx_1_1service_1_1_qx_connect.html" title="qx::service::QxConnect : define connection parameters used by QxService module of QxOrm library (this...">QxConnect</a> : <span class="keyword">public</span> qx::<a class="code" href="classqx_1_1_qx_singleton.html" title="qx::QxSingleton&lt;T&gt; : concrete class to define a thread-safe singleton of type T">QxSingleton</a>&lt;QxConnect&gt;
<a name="l00083"></a>00083 {
<a name="l00084"></a>00084 
<a name="l00085"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a43b0225b5a2761dde90465b2b4eca0d6">00085</a>    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classqx_1_1_qx_singleton.html" title="qx::QxSingleton&lt;T&gt; : concrete class to define a thread-safe singleton of type T">qx::QxSingleton</a>&lt;<a class="code" href="classqx_1_1service_1_1_qx_connect.html" title="qx::service::QxConnect : define connection parameters used by QxService module of QxOrm library (this...">QxConnect</a>&gt;;
<a name="l00086"></a>00086 
<a name="l00087"></a>00087 <span class="keyword">public</span>:
<a name="l00088"></a>00088 
<a name="l00089"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4275801eb5f3ca86f7567b8f8605a297aaa7ac1de2dfb510e77374b8fde34c68e">00089</a>    <span class="keyword">enum</span> <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4275801eb5f3ca86f7567b8f8605a297">serialization_type</a> { serialization_binary, <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4275801eb5f3ca86f7567b8f8605a297aaa7ac1de2dfb510e77374b8fde34c68e">serialization_xml</a>, serialization_text, serialization_portable_binary, 
<a name="l00090"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4275801eb5f3ca86f7567b8f8605a297a557a4a78fd19c0520584367e9c5136dc">00090</a>                              serialization_wide_binary, <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4275801eb5f3ca86f7567b8f8605a297a557a4a78fd19c0520584367e9c5136dc">serialization_wide_xml</a>, serialization_wide_text, 
<a name="l00091"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4275801eb5f3ca86f7567b8f8605a297a673e61e88c62c53cf5b12584a2c8d1b0">00091</a>                              serialization_polymorphic_binary, <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4275801eb5f3ca86f7567b8f8605a297a673e61e88c62c53cf5b12584a2c8d1b0">serialization_polymorphic_xml</a>, serialization_polymorphic_text, 
<a name="l00092"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4275801eb5f3ca86f7567b8f8605a297aaa584fa2a53cfda5d3953d1e83bea946">00092</a>                              <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4275801eb5f3ca86f7567b8f8605a297aaa584fa2a53cfda5d3953d1e83bea946">serialization_qt</a>, serialization_json };
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 <span class="keyword">protected</span>:
<a name="l00095"></a>00095 
<a name="l00096"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a974c96c0d5b60bc06c616d151ee7bb99">00096</a>    QString              <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a974c96c0d5b60bc06c616d151ee7bb99" title="Ip address.">m_sIp</a>;                  
<a name="l00097"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4709c91ea4cb1e5915133112d79c24ee">00097</a>    <span class="keywordtype">long</span>                 <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4709c91ea4cb1e5915133112d79c24ee" title="Port number.">m_lPort</a>;                
<a name="l00098"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#aa229ba6473202a412ce2666542ff6d6a">00098</a>    <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4275801eb5f3ca86f7567b8f8605a297">serialization_type</a>   <a class="code" href="classqx_1_1service_1_1_qx_connect.html#aa229ba6473202a412ce2666542ff6d6a" title="Serialization type to send data over network.">m_eSerializationType</a>;   
<a name="l00099"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a9a2a3d76efb8a00a7fc2565b477c98cf">00099</a>    <span class="keywordtype">long</span>                 <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a9a2a3d76efb8a00a7fc2565b477c98cf" title="Thread count to execute all transactions (cf. &#39;QxThreadPool&#39;)">m_lThreadCount</a>;         
<a name="l00100"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a769dce1baf45ab43096830e7b9f8329b">00100</a>    <span class="keywordtype">int</span>                  <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a769dce1baf45ab43096830e7b9f8329b" title="Max wait in milliseconds for network processes.">m_iMaxWait</a>;             
<a name="l00101"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4434b2b5ee5546eae0150e5cd24b6233">00101</a>    <span class="keywordtype">bool</span>                 <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4434b2b5ee5546eae0150e5cd24b6233" title="Compress data over network.">m_bCompressData</a>;        
<a name="l00102"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a350d6dee4d9f92fe878fecbeb6103b4d">00102</a>    <span class="keywordtype">bool</span>                 <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a350d6dee4d9f92fe878fecbeb6103b4d" title="Encrypt data before transfering it over network.">m_bEncryptData</a>;         
<a name="l00103"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a90442e03d611c38fd09959995c9a0b2f">00103</a>    quint64              <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a90442e03d611c38fd09959995c9a0b2f" title="64 bit key to encrypt/decrypt data">m_uiEncryptKey</a>;         
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="keyword">public</span>:
<a name="l00106"></a>00106 
<a name="l00107"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a773f4c56a6af9bb00e4634d0c72f7d72">00107</a>    <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a773f4c56a6af9bb00e4634d0c72f7d72">QxConnect</a>() : qx::<a class="code" href="classqx_1_1_qx_singleton.html" title="qx::QxSingleton&lt;T&gt; : concrete class to define a thread-safe singleton of type T">QxSingleton</a>&lt;<a class="code" href="classqx_1_1service_1_1_qx_connect.html" title="qx::service::QxConnect : define connection parameters used by QxService module of QxOrm library (this...">QxConnect</a>&gt;(<span class="stringliteral">&quot;qx::service::QxConnect&quot;</span>), m_lPort(0), m_eSerializationType(<a class="code" href="_qx_connect_8h.html#a2aa016dd83408fc905d2e1ef7650a02b">QX_SERVICE_DEFAULT_SERIALIZATION_TYPE</a>), m_lThreadCount(30), m_iMaxWait(30000), m_bCompressData(false), m_bEncryptData(false) { m_uiEncryptKey = <a class="code" href="_qx_connect_8h.html#ad0640f09e00c1ad6afc270a75ed33ee5">QX_SERVICE_DEFAULT_ENCRYPT_KEY</a>; }
<a name="l00108"></a>00108    <span class="keyword">virtual</span> ~<a class="code" href="classqx_1_1service_1_1_qx_connect.html" title="qx::service::QxConnect : define connection parameters used by QxService module of QxOrm library (this...">QxConnect</a>();
<a name="l00109"></a>00109 
<a name="l00110"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a277edc0b2db748e4f289e3424d5f93d4">00110</a>    QString <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a277edc0b2db748e4f289e3424d5f93d4">getIp</a>()<span class="keyword"> const                              </span>{ <span class="keywordflow">return</span> m_sIp; }
<a name="l00111"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#ac9474927cc67bb6c98a4047688fde7ac">00111</a>    <span class="keywordtype">long</span> <a class="code" href="classqx_1_1service_1_1_qx_connect.html#ac9474927cc67bb6c98a4047688fde7ac">getPort</a>()<span class="keyword"> const                               </span>{ <span class="keywordflow">return</span> m_lPort; }
<a name="l00112"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a6d7ab6f3dedaa480feaff7251d930cbd">00112</a>    <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4275801eb5f3ca86f7567b8f8605a297">serialization_type</a> <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a6d7ab6f3dedaa480feaff7251d930cbd">getSerializationType</a>()<span class="keyword"> const    </span>{ <span class="keywordflow">return</span> m_eSerializationType; }
<a name="l00113"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#af26b9f7088fea57f3c741421945b1176">00113</a>    <span class="keywordtype">long</span> <a class="code" href="classqx_1_1service_1_1_qx_connect.html#af26b9f7088fea57f3c741421945b1176">getThreadCount</a>()<span class="keyword"> const                        </span>{ <span class="keywordflow">return</span> m_lThreadCount; }
<a name="l00114"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a706ebc39ad1764e1d8188da4bdb7e068">00114</a>    <span class="keywordtype">int</span> <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a706ebc39ad1764e1d8188da4bdb7e068">getMaxWait</a>()<span class="keyword"> const                             </span>{ <span class="keywordflow">return</span> m_iMaxWait; }
<a name="l00115"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a638b10d38a554ac99b68170fd74fad5f">00115</a>    <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a638b10d38a554ac99b68170fd74fad5f">getCompressData</a>()<span class="keyword"> const                       </span>{ <span class="keywordflow">return</span> m_bCompressData; }
<a name="l00116"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a153a57087792d21d80d90753b5beedc7">00116</a>    <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a153a57087792d21d80d90753b5beedc7">getEncryptData</a>()<span class="keyword"> const                        </span>{ <span class="keywordflow">return</span> m_bEncryptData; }
<a name="l00117"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a2e09d6d8c8905c85116d8d8a83f6f0b9">00117</a>    quint64 <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a2e09d6d8c8905c85116d8d8a83f6f0b9">getEncryptKey</a>()<span class="keyword"> const                      </span>{ <span class="keywordflow">return</span> m_uiEncryptKey; }
<a name="l00118"></a>00118 
<a name="l00119"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a82638d548ee1b84f3ce83a6c5d57ad9e">00119</a>    <span class="keywordtype">void</span> <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a82638d548ee1b84f3ce83a6c5d57ad9e">setIp</a>(<span class="keyword">const</span> QString &amp; s)                      { m_sIp = s; }
<a name="l00120"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4ba0396b5ae3c02d27c017f580193e71">00120</a>    <span class="keywordtype">void</span> <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4ba0396b5ae3c02d27c017f580193e71">setPort</a>(<span class="keywordtype">long</span> l)                               { m_lPort = l; }
<a name="l00121"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4e346c9c0de30a286113e67c66de095d">00121</a>    <span class="keywordtype">void</span> <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4e346c9c0de30a286113e67c66de095d">setSerializationType</a>(<a class="code" href="classqx_1_1service_1_1_qx_connect.html#a4275801eb5f3ca86f7567b8f8605a297">serialization_type</a> e)    { m_eSerializationType = e; }
<a name="l00122"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a76a720b3fe67899485e39df0145355dd">00122</a>    <span class="keywordtype">void</span> <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a76a720b3fe67899485e39df0145355dd">setThreadCount</a>(<span class="keywordtype">long</span> l)                        { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(l &gt; 0); m_lThreadCount = l; }
<a name="l00123"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a5a5a2365e19b3ae174f957baf25d7f51">00123</a>    <span class="keywordtype">void</span> <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a5a5a2365e19b3ae174f957baf25d7f51">setMaxWait</a>(<span class="keywordtype">int</span> i)                             { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(i &gt; 0); m_iMaxWait = i; }
<a name="l00124"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a227199a3487a1f72a0fb1a623f7baa01">00124</a>    <span class="keywordtype">void</span> <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a227199a3487a1f72a0fb1a623f7baa01">setCompressData</a>(<span class="keywordtype">bool</span> b)                       { m_bCompressData = b; }
<a name="l00125"></a><a class="code" href="classqx_1_1service_1_1_qx_connect.html#a1b16a1bdac59727d1e77ff62e1d38e39">00125</a>    <span class="keywordtype">void</span> <a class="code" href="classqx_1_1service_1_1_qx_connect.html#a1b16a1bdac59727d1e77ff62e1d38e39">setEncryptData</a>(<span class="keywordtype">bool</span> b, quint64 key = 0)       { m_bEncryptData = b; <span class="keywordflow">if</span> (key != 0) { m_uiEncryptKey = key; } }
<a name="l00126"></a>00126 
<a name="l00127"></a>00127 };
<a name="l00128"></a>00128 
<a name="l00129"></a>00129 } <span class="comment">// namespace service</span>
<a name="l00130"></a>00130 } <span class="comment">// namespace qx</span>
<a name="l00131"></a>00131 
<a name="l00132"></a>00132 <a class="code" href="_qx_macro_8h.html#ad82efc1fae0529dca4a20067c88a9524">QX_DLL_EXPORT_QX_SINGLETON_HPP</a>(<a class="code" href="classqx_1_1service_1_1_qx_connect.html" title="qx::service::QxConnect : define connection parameters used by QxService module of QxOrm library (this...">qx::service::QxConnect</a>)
<a name="l00133"></a>00133 
<a name="l00134"></a>00134 <span class="preprocessor">#endif // _QX_SERVICE_CONNECT_H_</span>
<a name="l00135"></a>00135 <span class="preprocessor"></span><span class="preprocessor">#endif // _QX_ENABLE_QT_NETWORK</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_qx_connect_8h.html">QxConnect.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Dec 11 2016 13:41:06 for QxOrm by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
